DateValue
DateValue["elem"] gives the specified element of the current date and time.
DateValue[{elem1,elem2,…}] gives a list of the specified elements of the current date and time.
DateValue[date,elem] gives the specified element of the specified date.
DateValue[date,elem,form] gives the result in the specified form.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.